//
//  DevSettingTypeModel.h
//  RuiHeApp
//
//  Created by Jun on 2022/11/30.
//

#import "BaseModel.h"
#import "RHDeviceModel.h"
NS_ASSUME_NONNULL_BEGIN

/// 设置类型
typedef NS_ENUM(NSInteger, DevSettingType) {
    SettingType_Master               = 0, // Master
    SettingType_Inverter             = 1, // Inverter
    SettingType_PCS                  = 2, // PCS
    SettingType_DCDCIN               = 3, // DCDCIN/MPPT
    SettingType_DCDCOUT              = 4, // DCDCOUT
    SettingType_EMS                  = 5, // EMS
    SettingType_COMBINERBOX          = 6, // COMBINERBOX
    SettingType_CONDITIONER          = 7, // Conditioner
  
};


@interface DevSettingTypeModel : BaseModel

@property (nonatomic ,assign)  DevSettingType  settingType;

@property (nonatomic ,copy) NSArray *dataList;

@property (nonatomic ,copy) NSArray *mDataList;


@property(nonatomic ,assign) NSInteger selectIdx;
//针对南非微网 组选择下标
@property(nonatomic ,assign) NSInteger groupIdx;
//没有获取到阈值时弹出提示
@property (nonatomic ,assign) BOOL needShowTip;

+(DevSettingTypeModel *)getDataArray:(DevSettingType)type mpptGroupIndex:(NSInteger)groupIdx deviceModel:(RHDeviceModel *)model;

- (void)setMDataList;

- (void)readDefult:(NSDictionary *)dic ;

@end

NS_ASSUME_NONNULL_END
